#ifndef _MES_CRU_PROCESSING_1_MODEL_H
#define _MES_CRU_PROCESSING_1_MODEL_H
#include "atomic.h"

class MES_CRU_processing_1_model : public Atomic
{
public:
	MES_CRU_processing_1_model( const string & name = "MES_CRU_processing_1_model" );
	inline string className() const
	{
		return "MES_CRU_processing_1_model" ;
	}

protected:
	Model &initFunction();
	Model &externalFunction(const ExternalMessage &);
	Model &internalFunction(const InternalMessage &);
	Model &outputFunction(const InternalMessage &);

private:
	const Port &MES_CRU_1_stream_NA;
	float MES_CRU_1_stream_NA_flowrate;

	Port &MES_CRU_1_stream_HOGO;
	float MES_CRU_1_stream_HOGO_flowrate;
	Port &MES_CRU_1_stream_OP;
	float MES_CRU_1_stream_OP_flowrate;
	Port &MES_CRU_1_stream_LNA;
	float MES_CRU_1_stream_LNA_flowrate;

	float MES_CRU_1_stream_NA_yield_val;
	float MES_CRU_1_stream_HOGO_yield_val;
	float MES_CRU_1_stream_LNA_yield_val;


	Time delay;
	float total_flowrate;
	int count;
};

#endif
